import request from '@/utils/request'

export default {
  toolStockTakeList(params) {
    return request({
      url: '/v1/toolStockTakeList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/toolStockTake/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/toolStockTakeUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/toolStockTakeAdd',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/toolStockTakeDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/toolStockTakeAppend',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: '/v1/toolStockTakeRemove',
      method: 'post',
      data
    })
  },
  review(data) {
    return request({
      url: '/v1/toolTakeReview',
      method: 'post',
      data
    })
  }
}
